package com.nageoffer.jobtrain.admin.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nageoffer.jobtrain.admin.dao.entity.OjQuestionDO;
import com.nageoffer.jobtrain.admin.dto.resp.OjQuestionPageRespDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * author：唐晨
 * Oj题目数据持久层
 */
public interface OjQuestionMapper extends BaseMapper<OjQuestionDO> {
    List<OjQuestionPageRespDTO> ojQuestionPageList(@Param("difficulty") Integer difficulty,
                                                   @Param("title") String title,
                                                   @Param("ojQuestionList") Set<Long> ojQuestionList,
                                                   Page<OjQuestionPageRespDTO> page);
}
